package com.zzh.rabbit.tb.vm;


import android.app.Application;

import com.zzh.rabbit.R;
import com.zzh.rabbit.demo.base.ds.DataSourceRepo;
import com.zzh.rabbit.demo.base.vm.BaseViewModel;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

/**
 * Created by zzh on 2023/11/27.
 *
 * @date: 2023/11/27 21:22
 * @email: zzh_hz@126.com
 * @author: zzh
 * @description: com.zzh.rabbit.tb.vm
 */
public class ToolbarViewModel extends BaseViewModel {
    public ObservableField<CharSequence> toolbarCenterTitleText = new ObservableField<>("测试标题2");
    public ToolbarViewModel(Application application) {
        super(application);
    }

    public ToolbarViewModel(@NonNull Application application, DataSourceRepo model) {
        super(application, model);
    }

    @Override
    public int navigationIconResId() {
        return R.drawable.ic_back;
    }

    @Override
    protected CharSequence getToolbarTitle() {
        return "测试标题";
    }
}
